package com.paas.form.controller;


import com.bpm.feign.service.IBpmProcessInstanceService;
import com.paas.common.util.StringUtil;
import com.paas.common.web.controller.BaseController;
import com.paas.form.dto.FormInfoChangeDto;
import com.paas.form.service.IFormChangeService;
import com.paas.form.service.IFormViewChangeInfoService;
import com.paas.form.service.IFormViewPubService;
import com.paas.form.service.IFormViewService;
import com.paas.form.vo.ViewFinalizeVo;
import com.paas.plus.tool.form.server.FormServer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;

@RestController
@RequestMapping(value = "/form/formViewChange")
@Api(description = "视图模块", tags = "")
public class FormViewChangeController extends BaseController {

    @Autowired
    private IFormChangeService formChangeService;



    @RequestMapping(value = "/getFormChangeDetail",method = RequestMethod.GET)
    @ApiOperation(value = "保存信息", notes = "保存信息")
    public FormInfoChangeDto getFormChangeDetail(String viewId) throws ParseException {
        FormInfoChangeDto formInfoChangeDto = new FormInfoChangeDto();
        if (StringUtil.isNotEmpty(viewId)){
            formInfoChangeDto =  formChangeService.getFormChangeDtoById(viewId);
        }
        return formInfoChangeDto;
    }


}